home *** CD-ROM | disk | FTP | other *** search
- unit Rst2frm1;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, StdCtrls, ExtCtrls;
-
- type
- TForm1 = class(TForm)
- Panel1: TPanel;
- Button1: TButton;
- procedure Button1Click(Sender: TObject);
- procedure FormClose(Sender: TObject; var Action: TCloseAction);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- uses rst2frm2, FreeRes;
-
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- Form2.Height := Height;
- Form2.Width := Width;
- Form2.Left := Left;
- Form2.Top := Top;
- Form2.Show;
- Hide;
- FreeWinControl(self);
- end;
-
- procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
- begin
- Application.Terminate;
- end;
-
- end.
-